package com.fgr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaokai
 * @since 2023-05-09
 */
@TableName("an_donation")
public class Donation implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 捐助表主键
     */
    @TableId(value = "dn_id", type = IdType.AUTO)
    private Long dnId;

    /**
     * 捐助用户与user表的主键对应
     */
    private Long dnUid;

    /**
     * 捐助类型与捐助类型表主键对应
     */
    private Long dnTid;

    /**
     * 捐助物品数量
     */
    private Long dnNum;

    /**
     * 捐助日期
     */
    private LocalDateTime dnData;

    /**
     * 逻辑删除字段
     */
    private Boolean isDel;

    public Long getDnId() {
        return dnId;
    }

    public void setDnId(Long dnId) {
        this.dnId = dnId;
    }

    public Long getDnUid() {
        return dnUid;
    }

    public void setDnUid(Long dnUid) {
        this.dnUid = dnUid;
    }

    public Long getDnTid() {
        return dnTid;
    }

    public void setDnTid(Long dnTid) {
        this.dnTid = dnTid;
    }

    public Long getDnNum() {
        return dnNum;
    }

    public void setDnNum(Long dnNum) {
        this.dnNum = dnNum;
    }

    public LocalDateTime getDnData() {
        return dnData;
    }

    public void setDnData(LocalDateTime dnData) {
        this.dnData = dnData;
    }

    public Boolean getIsDel() {
        return isDel;
    }

    public void setIsDel(Boolean isDel) {
        this.isDel = isDel;
    }

    @Override
    public String toString() {
        return "Donation{" +
        "dnId = " + dnId +
        ", dnUid = " + dnUid +
        ", dnTid = " + dnTid +
        ", dnNum = " + dnNum +
        ", dnData = " + dnData +
        ", isDel = " + isDel +
        "}";
    }
}
